﻿using System.ComponentModel.DataAnnotations;

namespace Dashboard.Models
{
    public class CreateDataBaseRequest
    {
        public string AdministratorPassward { get; set; }

        [Required]
        public string Passward { get; set; }
        public int Port { get; set; }
        public string Seed { get; set; }

        public string SqlConnection { get { return $"Data Source=127.0.0.1,{this.Port};database=iTool.Gateway;uid=sa;pwd={this.Passward};MultipleActiveResultSets=true;"; } }
    }
}
